var stu={
    name:"苏中庭",
    age:19,
    sayHello:function (){
        console.log("苏中庭说你好")
    }
}
console.log("stu.name:"+stu.name);
console.log("stu.age:"+stu.age);
stu.sayHello();

var stu1={}
stu1.name="水中天";
stu1.age=19;
stu1.sayHello=function (){
    console.log("水中天说你好")
}
console.log("stu1.name:"+stu1.name);
console.log("stu1.age:"+stu1.age);
stu1.sayHello();

function Stu2(name,age){
    this.name=name;
    this.age=age;
    this.sayHello=function (){
        console.log(name+"说你好")
    }
}
var s=new Stu2("合信达",19);
console.log("stu2.name:"+s.name);
console.log("stu2.age:"+s.age);
s.sayHello();
